package com.bydq.patrolsystem.service;

import com.bydq.patrolsystem.entity.PsFunction;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bydq.patrolsystem.vo.FunctionTreeVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 写代码是不可能写代码的啦~~
 * @since 2020-05-22
 */
public interface PsFunctionService extends IService<PsFunction> {

    /**
     * 获得所有的父节点
     * @return
     */
    List<PsFunction> listParent();

    List<FunctionTreeVo> functionPoToVo(List<PsFunction> psFunctions);

    boolean delFunctionAndChildren(Integer id);
}
